﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.Design;
using Water.Resources.Globalize;
using Water.Web.Controls;
using System.IO;

namespace Water.Web.Controls.Design
{
    public class LayoutControlDesigner : System.Web.UI.Design.ContainerControlDesigner
    {
        private Layout layout;
        public override string FrameCaption
        {
            get
            {
                return null;
            }
        }

        public override string GetDesignTimeHtml()
        {
            layout = (Layout)Component;
            StringWriter sw = new StringWriter();
            HtmlTextWriter writer = new HtmlTextWriter(sw);
            layout.RenderControl(writer);
            return sw.ToString();
        }
    }
}
